try:
    filename = raw_input('Enter file name:')
    fobj = open(filename, 'r')
    
    for line in fobj:
        print line,

    fobj.close()
except IOError, e:
    print 'file open error:',